import { ApiProperty } from "@nestjs/swagger";
import { MaxLength, IsString, IsNotEmpty } from "class-validator";
import { DictDto } from "./dict.dto";

export class UpdateDictDto extends DictDto {
  @ApiProperty({ required: true, description: '字典标题' })
  @MaxLength(50, { message: '长度最大为50' })
  @IsString({ message: '字典名称必须为字符串类型' })
  @IsNotEmpty({ message: '字典不能为空' })
  readonly name: string;
}